$.ajax({
    url: url +"/userInfo/loginStatus",
    dataType:"json",
    type:"post",
    success:function (data) {
        if(2 == data.code){
            console.log("登录拦截！")
            location.href ="../../user/html/login.html"
        }
    }
})